import request from "../utils/reuqestFetch";
export const loginApi=(body)=>{
   return request('/users/login',{
        method: 'POST',
        body
    })
} 
export const addAccountApi=(body)=>{
   return request('/users/addOrEditAccount',{
        method: 'POST',
        body
    })
}
export const getAccountApi=(body)=>{
    return request('/users/getAccountList',{
         method: 'POST',
         body
     })
 }
 export const delAccountApi=(id)=>{
    return request('/users/delAccount?id='+id,{
         method: 'delete',
       
     })
 }